﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Lottery.LotterySetModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	彩种设置
</asp:Content>

<asp:Content ContentPlaceHolderID="StyleAndScript" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#lotteryoptionform").validate();
            $("#lotteryoptionform .table #tritem:odd").addClass("supersede");
            $("#lotteryoptionform .table :text").each(function () {
                $(this).parent().css("text-align", "left");
            });
        });
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <% Html.BeginForm(new { id = "lotteryoptionform" }, null); %>
    <fieldset>
        <legend>彩种设置</legend>
        <table class="table" width="100%">
            <tr>
                <th>名称</th>
                <th>状态</th>
                <th>顺序</th>
                <th>自动添加期号(天)</th>
                <th>购彩提前截止(秒)</th>
                <th>开奖延迟时间(秒)</th>
                <th>开奖超时时间(秒)</th>
            </tr>
            <%for (int i = 0; i < Model.Lotterys.Length; i++) %>
            <%{ %>
            <tr id="tritem">
                <td>
                    <%=Model.Lotterys[i].Name %>
                    <%=Html.HiddenFor(p=>p.Lotterys[i].Name) %>
                    <%=Html.HiddenFor(p=>p.Lotterys[i].ID) %>
                </td>
                <td>
                    <%=Html.CheckBoxFor(p=>p.Lotterys[i].State) %>
                </td>
                <td>
                    <%=Html.TextBoxFor(p => p.Lotterys[i].Sort, new { @class = "text50" })%>
                    <%=Html.ValidationMessageFor(p => p.Lotterys[i].Sort,"*")%>
                </td>
                <td>
                    <%=Html.TextBoxFor(p=>p.Lotterys[i].AutoAddIssue, new { @class = "text80"})%>
                    <%=Html.ValidationMessageFor(p=>p.Lotterys[i].AutoAddIssue)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(p=>p.Lotterys[i].ForwardEnd, new { @class = "text80"})%>
                    <%=Html.ValidationMessageFor(p => p.Lotterys[i].ForwardEnd)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(p => p.Lotterys[i].OpenWinDelayTime, new { @class = "text80" })%>
                    <%=Html.ValidationMessageFor(p => p.Lotterys[i].OpenWinDelayTime)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(p => p.Lotterys[i].OpenWinOverTime, new { @class = "text80" })%>
                    <%=Html.ValidationMessageFor(p => p.Lotterys[i].OpenWinOverTime)%>
                </td>
            </tr>
              <%} %>
            <tr>
                <td colspan="7" align="center">
                    <input type="submit" value="保存" onclick="return confirm('确定提交吗？')" />&nbsp;&nbsp;
                    <input type="reset" value="重设" />
                </td>
            </tr>
        </table>
    </fieldset>
    <% Html.EndForm(); %>
</asp:Content>
